import request from '@/utils/request'

// 联系信息列表
export const getContactInfoList = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ContactInfo/GetContactInfoList',
    method: 'GET',
    params
  });
}

// 添加联系信息
export const addContactInfo = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ContactInfo/AddContactInfo',
    method: 'POST',
    data
  });
}

// 更新联系信息
export const updateContactInfo = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ContactInfo/UpdateContactInfo',
    method: 'POST',
    data
  });
}

// 删除联系信息
export const deleteContactInfo = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ContactInfo/DeleteContactInfo',
    method: 'POST',
    data
  });
}

// 启用联系信息
export const enableContactInfo = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ContactInfo/EnabledContactInfo',
    method: 'POST',
    data
  });
}

// 禁用联系信息
export const disableContactInfo = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ContactInfo/DisabledContactInfo',
    method: 'POST',
    data
  });
}
